package com.wwwarehouse.resource_center.bean.rules;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Joseph on 2017/11/17.
 *         <p/>
 */

public class BuIdsBean implements Parcelable {

    private String buIcon;
    private String buId;
    private String buName;
    private boolean isSelect ;

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getBuIcon() {
        return buIcon;
    }

    public void setBuIcon(String buIcon) {
        this.buIcon = buIcon;
    }

    public String getBuId() {
        return buId;
    }

    public void setBuId(String buId) {
        this.buId = buId;
    }

    public String getBuName() {
        return buName;
    }

    public void setBuName(String buName) {
        this.buName = buName;
    }

    public BuIdsBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.buIcon);
        dest.writeString(this.buId);
        dest.writeString(this.buName);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
    }

    protected BuIdsBean(Parcel in) {
        this.buIcon = in.readString();
        this.buId = in.readString();
        this.buName = in.readString();
        this.isSelect = in.readByte() != 0;
    }

    public static final Creator<BuIdsBean> CREATOR = new Creator<BuIdsBean>() {
        @Override
        public BuIdsBean createFromParcel(Parcel source) {
            return new BuIdsBean(source);
        }

        @Override
        public BuIdsBean[] newArray(int size) {
            return new BuIdsBean[size];
        }
    };
}
